/*
 * spi_flash_W25Q64.h
 *
 *  Created on: Oct 19, 2022
 *      Author: yu
 */

#ifndef SPI_FLASH_W25Q64_H_
#define SPI_FLASH_W25Q64_H_

#include <stdint.h>

extern uint32_t u32SPI_Flash_ReadJedecId(void);
extern void SPI_Flash_ReadData(uint8_t *pRdData, uint32_t u32Addr, uint32_t u32BytesNum);
extern void SPI_FLASH_WriteData(uint8_t *pWrData, uint32_t u32Addr, uint32_t u32BytesNum);
extern void SPI_FLASH_SectorErase(uint32_t u32SectorAddr);
extern void SPI_FLASH_BlockErase(uint32_t u32BlockAddr);
extern void SPI_FLASH_ChipErase(void);

#endif /* SPI_FLASH_W25Q64_H_ */
